echo off
python -m pip install pipreqs
pipreqs %~dp1 --encoding=utf-8
pip install -r %~dp1requirements.txt

pyinstaller --icon Heart.ico --onefile "%~1"

copy %~dp1dist\*.exe %~dp1
rmdir /s /q %~dp1build
rmdir /s /q %~dp1dist
del /q %~dp1*.spec
pause